package com.lfs.admin.model.dto;

import com.lfs.admin.model.entity.dataPackage.DataUploadImageEntity;
import com.lfs.admin.model.vo.DataUploadDetailVO;
import lombok.Getter;
import lombok.Setter;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 拼多多属性
 **/
@Getter
@Setter
@Validated
public class PddProductPropertyDto{

    // 店铺ID
    @NotNull(message = "店铺ID不能够为空")
    private String shopId;

    // 两件折扣
    @NotNull(message = "两件折扣不能够为空")
    @Max(value=99,message = "折扣最大99")
    @Min(value=50,message = "折扣最小50")
    private String pddLJZK;

    // 单卖价高于拼团价多少元
    @NotNull(message = "拼团价不能够为空")
    private String pddPriceAbo;

    // 图片上传模式0-商品图片上传至平台图库空间(不占用店铺的图片空间) 1-商品图片上传至店铺图库空间(将占用店铺图片空间的存储)
    private String pddImageUploadType;

    // 发货时效 0-当天 1-24小时 2-48小时
    @NotNull(message = "发货时效不能够为空")
    private String pddShipmentsAging;

    // 规格顺序 1-款式在前,型号在后 2-型号在前,款式在后
    private String pddSpecOrder;

    // 假一赔十
    @NotNull(message = "假一赔十不能够为空")
    private boolean pddJYPS;

    // 主图自动补全
    private boolean pddMasterPicFill;

    // 商品公共参数
    @Valid
    @NotNull(message = "商品公共参数不能够为空")
    private ProductPropertyDto common;

    // 款式
    private PddGoodsPropertiesDto pddSJKKS;

    // 风格
    private PddGoodsPropertiesDto pddSJKFG;

    // 保护套质地
    private PddGoodsPropertiesDto pddSJKBHTZD;

    // 流行元素
    private List<PddGoodsPropertiesDto> pddSJKLXYS;

    // 自定义规格1
    private PddGoodsPropertiesDto specName1;

    // 自定义规格2
    private PddGoodsPropertiesDto specName2;

    // 自动标题
    @Valid
    @NotEmpty(message = "自动标题不能够为空")
    private List<DataUploadDetailVO> dataUploadDetailVO;

    // 规格
    private List<DataUploadImageEntity> dataUploadImageVO;
}
